package cloud.security.controller;

import cloud.security.dto.LoginDto;
import cloud.security.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LoginController {

    @Autowired
    private LoginService loginService;

    @PostMapping("/login")
    public String login(LoginDto loginDto){
        return loginService.login(loginDto);
    }


}
